#!/usr/bin/env bash

if [[ "$2" != "message" && "$2" != "commit" ]]; then
  codegpt commit --file "$1" --preview --no_confirm
fi
